package com.zhangxu.junior.domain;

import org.springframework.stereotype.Repository;

import java.util.Arrays;
import java.util.List;

/**
 * @Author zhang xu
 * @Date 2022/6/20 13:11
 * @PackageName:com.zhangxu.junior.domain
 * @ClassName: Student
 * @Description: TODO
 * @Version 1.0
 */


public class Student {

    /**学生ID*/
    private Long id;

    /**学生姓名*/
    private String studName;

    /**学生姓别*/
    private Integer sex;

    /**学生年级*/
    private Integer grade;

    /**课程对象集合*/
    private List<Course> courses;

    /**课程组*/
    private Long[] courseIds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStudName() {
        return studName;
    }

    public void setStudName(String studName) {
        this.studName = studName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    public Long[] getCourseIds() {
        return courseIds;
    }

    public void setCourseIds(Long[] courseIds) {
        this.courseIds = courseIds;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", studName='" + studName + '\'' +
                ", sex=" + sex +
                ", grade=" + grade +
                ", courses=" + courses +
                ", courseIds=" + Arrays.toString(courseIds) +
                '}';
    }
}
